from PySide6.QtWidgets import QWidget, QVBoxLayout
from util import UiUtil


class ChildWindow1(QWidget):
    def __init__(self, parent=None):
        super().__init__(parent)

        # 设定组件布局
        layout = QVBoxLayout(self)
        layout.setContentsMargins(0, 0, 0, 0)

        # 加载ui
        ui = UiUtil.loadUiFile("ui/ChildWindow1.ui")
        layout.addWidget(ui)
